import time

from selenium import webdriver
from selenium.webdriver.common.by import By
#登录
def login():
    driver = webdriver.Chrome()
    driver.implicitly_wait(10)
    driver.maximize_window()
    #打开地址
    driver.get('http://10.10.10.120:30209/')
    #输入账号密码
    driver.find_element(By.ID,'username').send_keys('administrator')
    driver.find_element(By.ID,'password').send_keys('Gdjt@2021')
    driver.find_element(By.XPATH,'//button').click()
    time.sleep(5)
if __name__ == '__main__':
    login()